package com.hoppinzq.service.hander;

import com.hoppinzq.service.annotation.GatewayServlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @author ZhangQi
 */
@GatewayServlet(prefix = "/service/hoppinzq1",description = "测试用")
public class MyDemoGatewayHandler extends AbstractApiGatewayHandler{

    @Override
    public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String str="qweqweqwe";
        response.setCharacterEncoding("UTF-8");
        response.setContentType("text/html; charset=utf-8");
        OutputStream out = response.getOutputStream();
        out.write(str.getBytes());
        out.close();
    }
}

